
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>【源码】CursorWindow读DB · 梦里茶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="陈伟航">
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="SQLITE在ANDROID上的一个BUG.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../">
            
                <a href="../">
            
                    
                    Android
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../activity/">
            
                <a href="../activity/">
            
                    
                    activity
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../activity/Activity四种启动模式.html">
            
                <a href="../activity/Activity四种启动模式.html">
            
                    
                    Activity四种启动模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../activity/INTENT_FLAG.html">
            
                <a href="../activity/INTENT_FLAG.html">
            
                    
                    Intent Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../activity/多TASK的应用.html">
            
                <a href="../activity/多TASK的应用.html">
            
                    
                    多task的应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="../activity/Task和回退栈.html">
            
                <a href="../activity/Task和回退栈.html">
            
                    
                    Task和回退栈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="./">
            
                <a href="./">
            
                    
                    sqlite
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.2.1" data-path="从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.html">
            
                <a href="从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.html">
            
                    
                    【源码】CursorWindow读DB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="SQLITE在ANDROID上的一个BUG.html">
            
                <a href="SQLITE在ANDROID上的一个BUG.html">
            
                    
                    Sqlite在Android上的一个Bug
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../chromium/">
            
                <a href="../chromium/">
            
                    
                    Chromium
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../listview_db.html">
            
                <a href="../listview_db.html">
            
                    
                    ListView读取DB数据最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../Android_project结构.html">
            
                <a href="../Android_project结构.html">
            
                    
                    Android Project结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../一个由PROGUARD与FASTJSON引起的血案.html">
            
                <a href="../一个由PROGUARD与FASTJSON引起的血案.html">
            
                    
                    一个由Proguard与FastJson引起的血案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../note.html">
            
                <a href="../note.html">
            
                    
                    琐碎的一些tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../ml/">
            
                <a href="../../ml/">
            
                    
                    Machine Learning
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../ml/trick/">
            
                <a href="../../ml/trick/">
            
                    
                    技巧
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../../ml/trick/imgnet_1h.html">
            
                <a href="../../ml/trick/imgnet_1h.html">
            
                    
                    FaceBook: 1 hour training ImageNet
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../../ml/trick/l2_normalize.html">
            
                <a href="../../ml/trick/l2_normalize.html">
            
                    
                    L2 Norm与L2 normalize
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../ml/pratice/ncs.html">
            
                <a href="../../ml/pratice/ncs.html">
            
                    
                    实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../ml/kit/">
            
                <a href="../../ml/kit/">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" >
            
                <a target="_blank" href="https://github.com/ahangchen/GDLNotes">
            
                    
                    Tensorflow学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../../ml/kit/caffe/mscnn.html">
            
                <a href="../../ml/kit/caffe/mscnn.html">
            
                    
                    mscnn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.3" data-path="../../ml/matlab/">
            
                <a href="../../ml/matlab/">
            
                    
                    Matlab
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.3.1" data-path="../../ml/matlab/ripc_auto.html">
            
                <a href="../../ml/matlab/ripc_auto.html">
            
                    
                    Matlab Remote IPC自动化数据处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../ml/papers/">
            
                <a href="../../ml/papers/">
            
                    
                    讲座论文系列
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1" data-path="../../ml/reid/">
            
                <a href="../../ml/reid/">
            
                    
                    Re-identification
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1.1" data-path="../../ml/papers/TFusion.html">
            
                <a href="../../ml/papers/TFusion.html">
            
                    
                    CVPR2018:TFusion完全解读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.2" data-path="../../ml/reid/reid.html">
            
                <a href="../../ml/reid/reid.html">
            
                    
                    Person Re-identification
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.3" data-path="../../ml/reid/cvpr-reid.html">
            
                <a href="../../ml/reid/cvpr-reid.html">
            
                    
                    CVPR2016 Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.4" data-path="../../ml/reid/reid-topo.html">
            
                <a href="../../ml/reid/reid-topo.html">
            
                    
                    Camera topology and Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.5" data-path="../../ml/reid/deep_transfer_learning_person_reid.html">
            
                <a href="../../ml/reid/deep_transfer_learning_person_reid.html">
            
                    
                    Deep transfer learning Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.6" data-path="../../ml/reid/evaluate.html">
            
                <a href="../../ml/reid/evaluate.html">
            
                    
                    Evaluate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="../../ml/papers/detection/">
            
                <a href="../../ml/papers/detection/">
            
                    
                    Object Detection
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.2.1" data-path="../../ml/papers/detection/rcnn.html">
            
                <a href="../../ml/papers/detection/rcnn.html">
            
                    
                    读论文系列·干货满满的RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.2" data-path="../../ml/papers/detection/sppnet.html">
            
                <a href="../../ml/papers/detection/sppnet.html">
            
                    
                    读论文系列·SPP-net
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.3" data-path="../../ml/papers/detection/fast_rcnn.html">
            
                <a href="../../ml/papers/detection/fast_rcnn.html">
            
                    
                    读论文系列·Fast RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.4" data-path="../../ml/papers/detection/faster_rcnn.html">
            
                <a href="../../ml/papers/detection/faster_rcnn.html">
            
                    
                    读论文系列·Faster RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.5" data-path="../../ml/papers/detection/yolo.html">
            
                <a href="../../ml/papers/detection/yolo.html">
            
                    
                    读论文系列·YOLO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.6" data-path="../../ml/papers/detection/ssd.html">
            
                <a href="../../ml/papers/detection/ssd.html">
            
                    
                    读论文系列·SSD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.7" data-path="../../ml/papers/detection/yolo23.html">
            
                <a href="../../ml/papers/detection/yolo23.html">
            
                    
                    读论文系列·YOLOv2 & YOLOv3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.8" data-path="../../ml/papers/detection/other.html">
            
                <a href="../../ml/papers/detection/other.html">
            
                    
                    读论文系列·detection其他文章推荐
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4.3" >
            
                <span>
            
                    
                    Hashing
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.3.1" data-path="../../ml/papers/hashing/ssah.html">
            
                <a href="../../ml/papers/hashing/ssah.html">
            
                    
                    CVPR2018: SSAH
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4.4" >
            
                <span>
            
                    
                    大杂烩
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.4.1" data-path="../../ml/papers/cncc2017.html">
            
                <a href="../../ml/papers/cncc2017.html">
            
                    
                    CNCC2017 琐记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4.2" data-path="../../ml/papers/eccv2016_hydra_ccnn.html">
            
                <a href="../../ml/papers/eccv2016_hydra_ccnn.html">
            
                    
                    ECCV 2016 Hydra CCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4.3" data-path="../../ml/papers/cncc_cv.html">
            
                <a href="../../ml/papers/cncc_cv.html">
            
                    
                    CNCC2017深度学习与跨媒体智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4.4" data-path="../../ml/papers/mla_2016.html">
            
                <a href="../../ml/papers/mla_2016.html">
            
                    
                    MLA2016笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../../ml/zzh_ml_notes.html">
            
                <a href="../../ml/zzh_ml_notes.html">
            
                    
                    《机器学习》（周志华）读书笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../../ml/melon/">
            
                <a href="../../ml/melon/">
            
                    
                    西瓜书概念整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1.1" data-path="../../ml/melon/ch01.html">
            
                <a href="../../ml/melon/ch01.html">
            
                    
                    绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.2" data-path="../../ml/melon/ch02.html">
            
                <a href="../../ml/melon/ch02.html">
            
                    
                    模型评估与选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.3" data-path="../../ml/melon/ch03.html">
            
                <a href="../../ml/melon/ch03.html">
            
                    
                    线性模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.4" data-path="../../ml/melon/ch04.html">
            
                <a href="../../ml/melon/ch04.html">
            
                    
                    决策树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.5" data-path="../../ml/melon/ch05.html">
            
                <a href="../../ml/melon/ch05.html">
            
                    
                    神经网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.6" data-path="../../ml/melon/ch06.html">
            
                <a href="../../ml/melon/ch06.html">
            
                    
                    支持向量机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.7" data-path="../../ml/melon/ch07.html">
            
                <a href="../../ml/melon/ch07.html">
            
                    
                    贝叶斯分类器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.8" data-path="../../ml/melon/ch08.html">
            
                <a href="../../ml/melon/ch08.html">
            
                    
                    集成学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.9" data-path="../../ml/melon/ch09.html">
            
                <a href="../../ml/melon/ch09.html">
            
                    
                    聚类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.10" data-path="../../ml/melon/ch10.html">
            
                <a href="../../ml/melon/ch10.html">
            
                    
                    降维与度量学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.11" data-path="../../ml/melon/ch11.html">
            
                <a href="../../ml/melon/ch11.html">
            
                    
                    特征选择与稀疏学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.12" data-path="../../ml/melon/ch12.html">
            
                <a href="../../ml/melon/ch12.html">
            
                    
                    计算学习理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.13" data-path="../../ml/melon/ch13.html">
            
                <a href="../../ml/melon/ch13.html">
            
                    
                    半监督学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.14" data-path="../../ml/melon/ch14.html">
            
                <a href="../../ml/melon/ch14.html">
            
                    
                    概率图模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.15" data-path="../../ml/melon/ch15.html">
            
                <a href="../../ml/melon/ch15.html">
            
                    
                    规则学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.16" data-path="../../ml/melon/ch16.html">
            
                <a href="../../ml/melon/ch16.html">
            
                    
                    强化学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.17" data-path="../../ml/melon/ch17.html">
            
                <a href="../../ml/melon/ch17.html">
            
                    
                    附录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../java/">
            
                <a href="../../java/">
            
                    
                    Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../java/java-web/note.html">
            
                <a href="../../java/java-web/note.html">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../../java/java-web/Servlet组织.html">
            
                <a href="../../java/java-web/Servlet组织.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../../java/java-web/note.html">
            
                <a href="../../java/java-web/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../java/jni/note.html">
            
                <a href="../../java/jni/note.html">
            
                    
                    JNI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../java/note.html">
            
                <a href="../../java/note.html">
            
                    
                    Note
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../java/ej/l1-new-delete.html">
            
                <a href="../../java/ej/l1-new-delete.html">
            
                    
                    Effective Java笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../backend/">
            
                <a href="../../backend/">
            
                    
                    后端开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../backend/design.html">
            
                <a href="../../backend/design.html">
            
                    
                    架构设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../backend/db.html">
            
                <a href="../../backend/db.html">
            
                    
                    数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../java/java-web/note.html">
            
                <a href="../../java/java-web/note.html">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.3.1" data-path="../../java/java-web/Servlet组织.html">
            
                <a href="../../java/java-web/Servlet组织.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" data-path="../../java/java-web/note.html">
            
                <a href="../../java/java-web/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../backend/spring_boot.html">
            
                <a href="../../backend/spring_boot.html">
            
                    
                    Spring boot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../../python/django/note.html">
            
                <a href="../../python/django/note.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../../backend/concurrent.html">
            
                <a href="../../backend/concurrent.html">
            
                    
                    分布式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../linux/note.html">
            
                <a href="../../linux/note.html">
            
                    
                    Linux && Hardware
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../linux/ubuntu_init.html">
            
                <a href="../../linux/ubuntu_init.html">
            
                    
                    Ubuntu安装与初始配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../linux/raspbian/">
            
                <a href="../../linux/raspbian/">
            
                    
                    树莓派相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../../linux/raspbian/rtlwifi.html">
            
                <a href="../../linux/raspbian/rtlwifi.html">
            
                    
                    树莓派3B+无线网卡监听模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="../../linux/raspbian/tlwr703n_openwrt.html">
            
                <a href="../../linux/raspbian/tlwr703n_openwrt.html">
            
                    
                    TP-LINK TL-WR703N v1.7 openwrt flashing
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../python/">
            
                <a href="../../python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../python/django/note.html">
            
                <a href="../../python/django/note.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../python/raw.html">
            
                <a href="../../python/raw.html">
            
                    
                    原生模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../python/design.html">
            
                <a href="../../python/design.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../python/viz.html">
            
                <a href="../../python/viz.html">
            
                    
                    可视化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../python/libs.html">
            
                <a href="../../python/libs.html">
            
                    
                    常用库踩坑指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../web-front/">
            
                <a href="../../web-front/">
            
                    
                    web前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../web-front/head_content.html">
            
                <a href="../../web-front/head_content.html">
            
                    
                    header div固定，content div填充父容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../web-front/json_res.html">
            
                <a href="../../web-front/json_res.html">
            
                    
                    json接口资源
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../UI/">
            
                <a href="../../UI/">
            
                    
                    UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../kit/">
            
                <a href="../../kit/">
            
                    
                    kit
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../../kit/vim/note.html">
            
                <a href="../../kit/vim/note.html">
            
                    
                    vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../../kit/git/note.html">
            
                <a href="../../kit/git/note.html">
            
                    
                    git/github
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.2.1" data-path="../../kit/git/green_blush.html">
            
                <a href="../../kit/git/green_blush.html">
            
                    
                    刷爆github小绿点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../../kit/markdown/">
            
                <a href="../../kit/markdown/">
            
                    
                    Markdown/gitbook
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.3.1" data-path="../../kit/markdown/pieces.html">
            
                <a href="../../kit/markdown/pieces.html">
            
                    
                    琐碎知识点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3.2" data-path="../../kit/markdown/gitbook_disqus.html">
            
                <a href="../../kit/markdown/gitbook_disqus.html">
            
                    
                    gitbook添加disqus作为评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3.3" data-path="../../kit/markdown/chrome_mark2_md.html">
            
                <a href="../../kit/markdown/chrome_mark2_md.html">
            
                    
                    导出chrome书签为Markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3.4" data-path="../../kit/markdown/wx_md.html">
            
                <a href="../../kit/markdown/wx_md.html">
            
                    
                    Markdown here && 微信公众号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../../kit/latex/">
            
                <a href="../../kit/latex/">
            
                    
                    LaTex
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.4.1" data-path="../../kit/latex/note.html">
            
                <a href="../../kit/latex/note.html">
            
                    
                    LaTex琐记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../../kit/ss/">
            
                <a href="../../kit/ss/">
            
                    
                    科学上网
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../thinking-in-program/">
            
                <a href="../../thinking-in-program/">
            
                    
                    thinking-in-program
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../../thinking-in-program/log.html">
            
                <a href="../../thinking-in-program/log.html">
            
                    
                    怎样打日志
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../../star.html">
            
                <a href="../../star.html">
            
                    
                    我的收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../pieces.html">
            
                <a href="../../pieces.html">
            
                    
                    琐记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../../paper.html">
            
                <a href="../../paper.html">
            
                    
                    论文心得
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../support.html">
            
                <a href="../../support.html">
            
                    
                    打赏支持
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >【源码】CursorWindow读DB</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x4ECE;&#x6E90;&#x7801;&#x770B;android&#x4E2D;sqlite&#x662F;&#x600E;&#x4E48;&#x901A;&#x8FC7;cursorwindow&#x8BFB;db&#x7684;">&#x4ECE;&#x6E90;&#x7801;&#x770B;ANDROID&#x4E2D;SQLITE&#x662F;&#x600E;&#x4E48;&#x901A;&#x8FC7;CURSORWINDOW&#x8BFB;DB&#x7684;</h2>
<p><strong>&#x6267;&#x884C;QUERY</strong></p>
<p>&#x6267;&#x884C;SQLiteDatabase&#x7C7B;&#x4E2D;query&#x7CFB;&#x5217;&#x51FD;&#x6570;&#x65F6;&#xFF0C;&#x53EA;&#x4F1A;&#x6784;&#x9020;&#x67E5;&#x8BE2;&#x4FE1;&#x606F;&#xFF0C;&#x4E0D;&#x4F1A;&#x6267;&#x884C;&#x67E5;&#x8BE2;&#x3002;</p>
<p><img src="780612-20151031010808138-1712425022.png" alt=""></p>
<p>&#xFF08;query&#x7684;&#x6E90;&#x7801;&#x8FFD;&#x8E2A;&#x8DEF;&#x5F84;&#xFF09;</p>
<p><strong>&#x6267;&#x884C;MOVE</strong>&#xFF08;&#x91CC;&#x9762;&#x7684;FILLWINDOW&#x662F;&#x771F;&#x6B63;&#x6253;&#x5F00;&#x6587;&#x4EF6;&#x53E5;&#x67C4;&#x5E76;&#x5206;&#x914D;&#x5185;&#x5B58;&#x7684;&#x5730;&#x65B9;&#xFF09;</p>
<p>&#x5F53;&#x6267;&#x884C;Cursor&#x7684;move&#x7CFB;&#x5217;&#x51FD;&#x6570;&#x65F6;&#xFF0C;&#x7B2C;&#x4E00;&#x6B21;&#x6267;&#x884C;&#xFF0C;&#x4F1A;&#x4E3A;&#x67E5;&#x8BE2;&#x7ED3;&#x679C;&#x96C6;&#x521B;&#x5EFA;&#x4E00;&#x5757;&#x5171;&#x4EAB;&#x5185;&#x5B58;&#xFF0C;&#x5373;cursorwindow</p>
<p> <img src="780612-20151031010913185-139884557.png" alt=""></p>
<p><strong>moveToPosition&#x6E90;&#x7801;&#x8DEF;&#x5F84;</strong></p>
<p><strong>FILLWINDOW----&#x771F;&#x6B63;&#x8017;&#x65F6;&#x7684;&#x5730;&#x65B9;</strong></p>
<p> <img src="780612-20151031011013513-1879583464.png" alt=""></p>
<p>&#x7136;&#x540E;&#x4F1A;&#x6267;&#x884C;sql&#x8BED;&#x53E5;&#xFF0C;&#x5411;&#x5171;&#x4EAB;&#x5185;&#x5B58;&#x4E2D;&#x586B;&#x5165;&#x6570;&#x636E;&#xFF0C;</p>
<p><strong>fillWindow&#x6E90;&#x7801;&#x8DEF;&#x5F84;</strong></p>
<p>&#x5728;SQLiteCursor.java&#x4E2D;&#x53EF;&#x4EE5;&#x770B;&#x5230;</p>
<pre><code class="lang-java"><span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">boolean</span> <span class="hljs-title">onMove</span><span class="hljs-params">(<span class="hljs-keyword">int</span> oldPosition, <span class="hljs-keyword">int</span> newPosition)</span> </span>{
    <span class="hljs-comment">// Make sure the row at newPosition is present in the window</span>
    <span class="hljs-keyword">if</span> (mWindow == <span class="hljs-keyword">null</span> || newPosition &lt; mWindow.getStartPosition() ||
            newPosition &gt;= (mWindow.getStartPosition() + mWindow.getNumRows())) {
        fillWindow(newPosition);
    }

    <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;
}
</code></pre>
<p>&#x5982;&#x679C;&#x8BF7;&#x6C42;&#x67E5;&#x8BE2;&#x7684;&#x4F4D;&#x7F6E;&#x5728;cursorWindow&#x7684;&#x8303;&#x56F4;&#x5185;&#xFF0C;&#x4E0D;&#x4F1A;&#x6267;&#x884C;fillWindow&#xFF0C;</p>
<p>&#x800C;&#x8D85;&#x51FA;cursorwindow&#x7684;&#x8303;&#x56F4;&#xFF0C;&#x4F1A;&#x8C03;&#x7528;fillWindow&#xFF0C;</p>
<p>&#x800C;&#x5728;nativeExecuteForCursorWindow&#x4E2D;&#xFF0C;</p>
<p>&#x83B7;&#x53D6;&#x8BB0;&#x5F55;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x8BF7;&#x6C42;&#x7684;&#x4F4D;&#x7F6E;&#x8D85;&#x51FA;&#x7A97;&#x53E3;&#x8303;&#x56F4;&#xFF0C;&#x4F1A;&#x53D1;&#x751F;CursorWindow&#x7684;&#x6E05;&#x7A7A;&#xFF1A;</p>
<pre><code class="lang-c">CopyRowResult cpr = copyRow(env, window, statement, numColumns, startPos, addedRows);  
<span class="hljs-keyword">if</span> (cpr == CPR_FULL &amp;&amp; addedRows &amp;&amp; startPos + addedRows &lt; requiredPos) {  
<span class="hljs-comment">// We filled the window before we got to the one row that we really wanted. </span>
<span class="hljs-comment">// Clear the window and start filling it again from here.  </span>
<span class="hljs-comment">// <span class="hljs-doctag">TODO:</span> Would be nicer if we could progressively replace earlier rows.  </span>
window-&gt;clear();  
window-&gt;setNumColumns(numColumns);  
startPos += addedRows;  
addedRows = <span class="hljs-number">0</span>;  
cpr = copyRow(env, window, statement, numColumns, startPos, addedRows);  
}
</code></pre>
<p>CursorWindow&#x7684;&#x6E05;&#x7A7A;&#x673A;&#x5236;&#x4F1A;&#x5F71;&#x54CD;&#x5230;&#x591A;&#x7EBF;&#x7A0B;&#x8BFB;&#xFF08;&#x901A;&#x5E38;&#x8BA4;&#x4E3A;&#x4E0D;&#x53EF;&#x4EE5;&#x5E76;&#x53D1;&#x8BFB;&#x5199;&#xFF0C;sqlite&#x7684;&#x5E76;&#x53D1;&#x5B9E;&#x9645;&#x4E0A;&#x662F;&#x4E32;&#x884C;&#x6267;&#x884C;&#x7684;&#xFF0C;&#x4F46;&#x53EF;&#x4EE5;&#x5E76;&#x53D1;&#x8BFB;&#xFF0C;&#x8FD9;&#x91CC;&#x8981;&#x5F3A;&#x8C03;&#x7684;&#x662F;&#x591A;&#x7EBF;&#x7A0B;&#x8BFB;&#x4E5F;&#x53EF;&#x80FD;&#x6709;&#x95EE;&#x9898;&#xFF09;&#xFF0C;&#x5177;&#x4F53;&#x89C1;&#x7A0D;&#x540E;&#x4E00;&#x7BC7;&#x6587;&#x7AE0;&#x201C;listview&#x5E76;&#x53D1;&#x8BFB;&#x5199;&#x6570;&#x636E;&#x5E93;&#x201D;&#x3002;</p>
<p> &#x4E0A;&#x9762;&#x8BF4;&#x7684;&#x8FD9;&#x4E9B;&#x76F4;&#x89C2;&#x7684;&#x611F;&#x53D7;&#x662F;&#x4EC0;&#x4E48;&#x6837;&#x7684;&#x5462;&#xFF1F;&#x5927;&#x6982;&#x662F;&#x8FD9;&#x6837;&#xFF0C;</p>
<p>  &#x6267;&#x884C;query&#xFF0C;&#x8BFB;10000&#x6761;&#x6570;&#x636E;&#xFF0C;&#x5F88;&#x5FEB;&#x5C31;&#x62FF;&#x5230;&#x4E86;cursor&#xFF0C;&#x8FD9;&#x91CC;&#x4E0D;&#x4F1A;&#x5361;&#xFF0C;</p>
<p>  &#x6267;&#x884C;moveToFirst&#xFF0C;&#x5361;&#x4E00;&#x4E0B;&#xFF08;fillwindow(0)&#xFF09;</p>
<p>  moveToPosition(7500)&#xFF0C;&#x5361;&#x4E00;&#x4E0B;&#xFF0C;&#x56E0;&#x4E3A;&#x5DF2;&#x7ECF;&#x8D85;&#x4E86;cursorwindow&#x7684;&#x533A;&#x57DF;&#xFF0C;&#x53C8;&#x53BB;fillwindow(7500)&#xFF0C;</p>
<p>  &#x5173;&#x4E8E;fillwindow&#x8FD8;&#x6709;&#x4E00;&#x4E9B;&#x5947;&#x7279;&#x7684;&#x7EC6;&#x8282;&#xFF0C;&#x6BD4;&#x5982;4.0&#x4EE5;&#x540E;&#xFF0C;fillwindow&#x4F1A;&#x586B;&#x5145;position&#x524D;&#x540E;&#x5404;&#x4E00;&#x6BB5;&#x6570;&#x636E;&#xFF0C;&#x9632;&#x6B62;&#x8BFB;&#x65E7;&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#x53C8;&#x9700;&#x8981;fill&#xFF0C;&#x611F;&#x5174;&#x8DA3;&#x7684;&#x540C;&#x5B66;&#x53EF;&#x4EE5;&#x770B;&#x770B;&#x5404;&#x4E2A;&#x7248;&#x672C;fillwidow&#x7684;&#x6E90;&#x7801;&#x3002;</p>
<p>  &#x8FD9;&#x91CC;&#x8FD8;&#x53EF;&#x4EE5;&#x5EF6;&#x4F38;&#x4E00;&#x4E0B;&#xFF0C;&#x56E0;&#x4E3A;&#x9AD8;&#x7248;&#x672C;&#x7684;android sqlite&#x5BF9;&#x65E7;&#x7248;&#x6709;&#x8BB8;&#x591A;&#x6539;&#x8FDB;&#xFF0C;</p>
<p>  &#x6240;&#x4EE5;&#x5B9E;&#x9645;&#x5F00;&#x53D1;&#x91CC;&#x6211;&#x4EEC;&#x6709;&#x65F6;&#x5019;&#x4F1A;&#x628A;sqlite&#x7684;&#x6E90;&#x7801;&#x5E26;&#x5728;&#x81EA;&#x5DF1;&#x7684;&#x5DE5;&#x7A0B;&#x91CC;&#xFF0C;&#x4F7F;&#x5F97;&#x4F4E;&#x7248;&#x672C;&#x7684;android&#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x9AD8;&#x7248;&#x672C;&#x7684;&#x7279;&#x6027;&#xFF0C;&#x5E76;&#x4E14;&#x907F;&#x5F00;&#x4E00;&#x90E8;&#x5206;&#x517C;&#x5BB9;&#x6027;&#x95EE;&#x9898;&#x3002;</p>
<p><strong>CURSOR&#x5173;&#x95ED;</strong>&#xFF08;&#x663E;&#x5F0F;&#x8C03;&#x7528;CLOSE()&#x7684;&#x7406;&#x7531;&#xFF09;</p>
<p>&#x8FFD;&#x8E2A;&#x6E90;&#x7801;&#x770B;&#x5173;&#x95ED;</p>
<pre><code class="lang-java"> <span class="hljs-comment">//SQLiteCursor</span>

<span class="hljs-keyword">super</span>.close();
<span class="hljs-keyword">synchronized</span> (<span class="hljs-keyword">this</span>) {
    mQuery.close();
    mDriver.cursorClosed();
}


<span class="hljs-comment">//AbstractCursor</span>

<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">close</span><span class="hljs-params">()</span> </span>{
    mClosed = <span class="hljs-keyword">true</span>;
    mContentObservable.unregisterAll();
    onDeactivateOrClose();
}

<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">onDeactivateOrClose</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">if</span> (mSelfObserver != <span class="hljs-keyword">null</span>) {
        mContentResolver.unregisterContentObserver(mSelfObserver);
        mSelfObserverRegistered = <span class="hljs-keyword">false</span>;
    }
    mDataSetObservable.notifyInvalidated();
}


<span class="hljs-comment">//AbstractWindowedCursor</span>

<span class="hljs-comment">/** <span class="hljs-doctag">@hide</span> */</span>
<span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">onDeactivateOrClose</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">super</span>.onDeactivateOrClose();
    closeWindow();
}

<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">closeWindow</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">if</span> (mWindow != <span class="hljs-keyword">null</span>) {
        mWindow.close();
        mWindow = <span class="hljs-keyword">null</span>;
    }
}



<span class="hljs-comment">//SQLiteClosable</span>

<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">close</span><span class="hljs-params">()</span> </span>{
    releaseReference();
}

<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">releaseReference</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">boolean</span> refCountIsZero = <span class="hljs-keyword">false</span>;
    <span class="hljs-keyword">synchronized</span>(<span class="hljs-keyword">this</span>) {
        refCountIsZero = --mReferenceCount == <span class="hljs-number">0</span>;
    }
    <span class="hljs-keyword">if</span> (refCountIsZero) {
        onAllReferencesReleased();
    }
}

<span class="hljs-comment">//CursorWindow</span>

<span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">onAllReferencesReleased</span><span class="hljs-params">()</span> </span>{
    dispose();
}

<span class="hljs-function"><span class="hljs-keyword">private</span> <span class="hljs-keyword">void</span> <span class="hljs-title">dispose</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">if</span> (mCloseGuard != <span class="hljs-keyword">null</span>) {
        mCloseGuard.close();
    }
    <span class="hljs-keyword">if</span> (mWindowPtr != <span class="hljs-number">0</span>) {
        recordClosingOfWindow(mWindowPtr);
        nativeDispose(mWindowPtr);
        mWindowPtr = <span class="hljs-number">0</span>;
    }
}
</code></pre>
<p>&#x8DDF;CursorWindow&#x6709;&#x5173;&#x7684;&#x8DEF;&#x5F84;&#x91CC;&#xFF0C;&#x6700;&#x7EC8;&#x8C03;&#x7528;nativeDispose()&#x6E05;&#x7A7A;cursorWindow;</p>
<p>&#x5F53;Cursor&#x88AB;GC&#x56DE;&#x6536;&#x65F6;&#xFF0C;&#x4F1A;&#x8C03;&#x7528;finalize&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">finalize</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">try</span> {
        <span class="hljs-comment">// if the cursor hasn&apos;t been closed yet, close it first</span>
        <span class="hljs-keyword">if</span> (mWindow != <span class="hljs-keyword">null</span>) {
            <span class="hljs-keyword">if</span> (mStackTrace != <span class="hljs-keyword">null</span>) {
                String sql = mQuery.getSql();
                <span class="hljs-keyword">int</span> len = sql.length();
                StrictMode.onSqliteObjectLeaked(
                    <span class="hljs-string">&quot;Finalizing a Cursor that has not been deactivated or closed. &quot;</span> +
                    <span class="hljs-string">&quot;database = &quot;</span> + mQuery.getDatabase().getLabel() +
                    <span class="hljs-string">&quot;, table = &quot;</span> + mEditTable +
                    <span class="hljs-string">&quot;, query = &quot;</span> + sql.substring(<span class="hljs-number">0</span>, (len &gt; <span class="hljs-number">1000</span>) ? <span class="hljs-number">1000</span> : len),
                    mStackTrace);
            }
            close();
        }
    } <span class="hljs-keyword">finally</span> {
        <span class="hljs-keyword">super</span>.finalize();
    }
}
</code></pre>
<p>&#x7136;&#x800C;finalize()&#x5E76;&#x6CA1;&#x6709;&#x91CA;&#x653E;CursorWindow&#xFF0C;&#x800C;super.finalize();&#x91CC;<strong>&#x4E5F;&#x53EA;&#x662F;&#x89E3;&#x7ED1;&#x4E86;&#x89C2;&#x5BDF;&#x8005;&#xFF0C;&#x6CA1;&#x6709;&#x53BB;&#x91CA;&#x653E;cursorwindow</strong></p>
<p><strong>&#x6240;&#x4EE5;&#x4E0D;&#x8C03;&#x7528;cursor.close(),&#x6700;&#x7EC8;&#x4F1A;&#x5BFC;&#x81F4;cursorWindow&#x6240;&#x5728;&#x7684;&#x5171;&#x4EAB;&#x5185;&#x5B58;(1M&#x6216;2M)&#x6CC4;&#x9732;&#x3002;</strong></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: sqlite">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="SQLITE在ANDROID上的一个BUG.html" class="navigation navigation-next " aria-label="Next page: Sqlite在Android上的一个Bug">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"【源码】CursorWindow读DB","level":"1.2.2.1","depth":3,"next":{"title":"Sqlite在Android上的一个Bug","level":"1.2.2.2","depth":3,"path":"android/sqlite/SQLITE在ANDROID上的一个BUG.md","ref":"android/sqlite/SQLITE在ANDROID上的一个BUG.md","articles":[]},"previous":{"title":"sqlite","level":"1.2.2","depth":2,"path":"android/sqlite/README.md","ref":"android/sqlite/README.md","articles":[{"title":"【源码】CursorWindow读DB","level":"1.2.2.1","depth":3,"path":"android/sqlite/从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.md","ref":"android/sqlite/从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.md","articles":[]},{"title":"Sqlite在Android上的一个Bug","level":"1.2.2.2","depth":3,"path":"android/sqlite/SQLITE在ANDROID上的一个BUG.md","ref":"android/sqlite/SQLITE在ANDROID上的一个BUG.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["disqus","github","toggle-chapters","mathjax","mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"useIdentifier":false,"shortName":"ahangchen-blog"},"github":{"url":"https://github.com/ahangchen/windy-afternoon"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"mermaid-gb3":{},"mathjax":{"forceSVG":false,"version":"2.6-latest"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"陈伟航","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦里茶","gitbook":"*"},"file":{"path":"android/sqlite/从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.md","mtime":"2017-06-21T09:19:23.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-05-19T05:00:41.899Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="https://cdn.staticfile.org/mathjax/2.6.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mathjax/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

